package com.erp.order.supply.model;

import com.erp.hr.base.model.BaseModel;
import com.erp.order.purchasing.model.QuotedPriceDetail;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

@Data
@Entity
@DynamicInsert()
@DynamicUpdate()
@EqualsAndHashCode(callSuper = true)
@Table(name="supply_material", schema="erp")
public class SupplyMaterial extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商id
     */
    @Column(name = "vendor_id")
    private String vendorId;

    /**
     * 采购单id
     */
    @Column(name = "purchase_order_id")
    private String purchaseOrderId;
    /**
     * 供货方式
     */
    @Column(name = "supply_type")
    private String supplyType;

    /**
     * 供货详情详情集合
     */
    @Transient
    private List<SupplyMaterialR> supplyMaterialRS;

    @Transient
    private SupplyMaterialR supplyMaterialR;
}
